#pragma once
#include <ctime>
#include <string>

std::string GetDate() {
  time_t now = time(0);
  tm *lt = localtime(&now);
  std::string ret;
  ret += std::to_string(1900 + lt->tm_year);
  ret += "-";
  if (lt->tm_mon < 10) {
    ret += "0";
  }
  ret += std::to_string(1 + lt->tm_mon);
  ret += "-";
  ret += std::to_string(lt->tm_mday);
  return ret;
}